package com.bigcms.domain;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Art {
    private Integer id;
    private String title;
    private String body;
    @JsonProperty("create_time")
    private Integer createTime;
    @JsonProperty("update_time")
    private Integer updateTime;
    private Integer uid;
    private Integer pid;

    private Type type;

    public Type getType() {
        return type;
    }

    @Override
    public String toString() {
        return "Art{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", body='" + body + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", uid=" + uid +
                ", pid=" + pid +
                ", type=" + type +
                '}';
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public Art() {
    }
}
